
# 使用递归方式阶乘

def func(n):
    if n == 1:
        return 1
    else:
        return n*func(n-1)

result = 0
for i in range(1, 6):
    result+=func(i)
print(result)


